import MOCKrequest from '@/utils/mockrequset'
const state = {
  list: {}
}
const mutations = {
  GETDATA(state, list) {
    state.list = list
  }
}
const actions = {
  async getData({ commit }) {
    let res = await MOCKrequest.get('/home/list')
    if (res.code == 20000) {
      commit('GETDATA', res.data)
    }
  }
}
const getters = {

}
export default {
  state,
  mutations,
  actions,
  getters
}